<?php
//session
session_start(3600*24);
header("Cache-control:private");

//timezone 
date_default_timezone_set('PRC');
//ini_set('display_errors', 'on');
ini_set('max_execution_time', '1800'); 
//error_reporting
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED);
$dsn_user = array( 
'phptype' => 'mysql',
//'user' => 'root',
//'pwd' => '',
//'host' => '127.0.0.1',
'port' => '3306',
'user' => 'bizhuan',
'pwd' => '6E3db3d%de+8a', 
'host' => 'rm-m5e0b6t09tf6qzd34.mysql.rds.aliyuncs.com',
'db_name' => 'bizhuan',
'db_charset' => 'utf8' 
);
define('SCHEME',$_SERVER['HTTPS']?'https':'http');
define('HOST',$_SERVER['HTTP_HOST']);
//site url
define('SITEURL',SCHEME.'://'.HOST.'/');
define('SITE_URL',SCHEME.'://'.HOST.'/fumengAdmin/');
define('STATICDIR',SITEURL.'fumengAdmin/static/');
define('IN_APP','fumengAdmin'); 
define('ROOTDIR', realpath(dirname(__FILE__))."/../");
define('TEMPLATE_DIR', ROOTDIR . 'template/');
// Temlate cache
define('TEMPLATE_DATA_DIR', ROOTDIR . 'cache');
define('IMG_DIR', ROOTDIR . 'static/upload/');

define('OSS_URL',SCHEME.'://resource.jinfumeng.com/');
define('UPLOAD_IMG_URL',OSS_URL);

define('DAYU_Key','23657617');
define('DAYU_Secret','6b74c233b160e77c1875eafcf07906cb');

//日志配置
$_logconf = array('mode' => 0644, 'timeFormat' => '%Y-%m-%d %X');
$_logfile = array(
		'db'=>ROOTDIR.'log/db.log',
		'debug'=>ROOTDIR.'log/debug.log'
);
$_loglevel = 7;  // 0:EMERG,1:ALERT,2:CRIT,3:ERR,4:WARNING,5:NOTIC,6:INFO,7:DEBUG
require_once (ROOTDIR."source/service/Logger.class.php");
require_once (ROOTDIR."source/service/Template.class.php");
require_once(ROOTDIR.'source/function/function.php');
require_once(ROOTDIR.'source/function/message.php');



require_once(ROOTDIR.'config/class.inc');
require_once(ROOTDIR.'config/menu.inc');
















$backList['1'] = '招商银行';
$backList['2'] = '中国农业银行';
$backList['3'] = '交通银行';
$backList['4'] = '邮储银行';
$backList['5'] = '兴业银行';
$backList['6'] = '华夏银行';
$backList['7'] = '广发银行';
$backList['8'] = '中国工商银行';
$backList['9'] = '中国建设银行';
$backList['10'] = '中信银行';
$backList['11'] = '中国光大银行';
$backList['12'] = '北京银行';
$backList['13'] = '中国银行';
$backList['14'] = '浦发银行';
$backList['15'] = '平安银行';
$backList['15'] = '民生银行';
$backList['16'] = '其他银行';


//分享活动有效期
$shareTime['start'] = 1490630400; //时间戳格式 1490630400----3月28日 0:0:0

$shareTime['end'] = 1493568000; //时间戳格式 1493568000----5月1日 0:0:0

$shareTime['bili'] = 0.01; // 返利金额 * 比例　=　分享返利

   
$lcType['pt'] = "平台";
$lcType['zy'] = "直银";
$lcType['jj'] = "基金";
$lcType['bx'] = "保险";



